package com.youmans.eduservice.controller;

import com.youmans.commonutils.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;
@Api(tags = "登录控制器")
@RestController
@RequestMapping("/eduservice/user")
public class EduLoginController {
    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin") ;
    }

    @GetMapping("info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","https://gulimall-station.oss-cn-hangzhou.aliyuncs.com/2022-04-27/e0067c542a00460c98b8109e2aab60e7.png") ;
    }
}
